/**************************************************************************/
/*  Copyright (C) School of Software Engineering of USTC, 2013             
/*                                                                        
/*  FILE NAME: WordSegFolder.h                                                  
/*  PRINCIPAL AUTHOR: SA12226340(Song Zeyu)                                                                                                          
/*  LANGUAGE: C++/C                                                          
/*  TARGET ENVIRONMENT: Linux                                             
/*  DATE OF FIRST RELEASE: 2013-06-10                                    
/*  DESCRIPTION:Chinese word extraction              
/**************************************************************************/

#ifndef _WORDSEG_H_
#define _WORDSEG_H_
#include "MyMap.h"
#define MaxWordLength 30 //max length of word
/*
*查找单词str是否在第map_nodes个mapword中出现
*/
void WordsMap(char *str,map<string,int>mapword[],int map_nodes);

/*
*查找单词str是否在mailmap中出现
*/
void WordsMapStr(char *str,map<string,int>&mailmap);

/*
*对字符串str进行分词提取，结果存放在第map_nodes个mapword中
*/
void SegmentSentence(char *str,map<string,int>mapword[],int map_nodes);


/*
*对字符串str进行分词提取，结果存放在mailmap中
*/
void SegmentSentenceStr(char *str,map<string,int>&mailmap);

/*
*对字符串str去掉中文标点和英文字符
*/
void SegmentSentenceMM (char *str,map<string,int>mapword[],int map_nodes);

/*
*对字符串str去掉中文标点和英文字符
*/
void SegmentSentenceStrMM (char *str,map<string,int>&mailmap);

#endif
